package Queue练习;

import java.util.LinkedList;
import java.util.Queue;

public class use_queue {
    public static void main(String[] args) {
        Queue<String> queue=new LinkedList<>();
        System.out.println(queue);

        queue.add("A");
        queue.add("B");
        queue.add("C");

        System.out.println(queue);
        System.out.println(queue.remove());//删除队列首元素
        System.out.println(queue.size());
        System.out.println(queue.element());
        System.out.println(queue.size());
    }
}
